package cn.tnar.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;

import java.io.Serializable;

/**
 * @Author: 陈亮
 * @Date: 2018/10/12 16:13
 */
@TableName("t_acct_cust_login_info")
public class TAcctCustLoginInfo extends Model<TAcctCustLoginInfo> {

    private static final long serialVersionUID = 1L;

    @TableField("node_id")
    private Integer nodeId;
    @TableId("cust_id")
    private Long custId;
    @TableField("login_type")
    private Integer loginType;
    @TableField("trade_pwd")
    private String tradePwd;
    @TableField("fund_pwd")
    private String fundPwd;
    private String mobile;
    /**
     * 优惠券发放人
     */
    @ApiModelProperty(value = "优惠券发放人")
    @ApiParam(value = "优惠券发放人")
    private String opername;
    private String email;
    private String qq;
    private String weixin;
    @TableField("cust_session")
    private String custSession;
    @TableField("session_vaild_dt")
    private Long sessionVaildDt;
    @TableField("login_total_ct")
    private Integer loginTotalCt;
    @TableField("login_result")
    private Integer loginResult;
    @TableField("last_datetime")
    private Long lastDatetime;
    @TableField("login_ip")
    private String loginIp;
    private Long lng;
    private Long lat;
    private String devinfos;
    @TableField("push_ios_deviceid")
    private String pushIosDeviceid;
    @TableField("push_android_deviceid")
    private String pushAndroidDeviceid;
    @TableField("push_android_userid")
    private String pushAndroidUserid;
    @TableField("active_type")
    private Integer activeType;
    @TableField("active_item")
    private Integer activeItem;
    @TableField("active_id")
    private String activeId;
    @TableField("active_code")
    private String activeCode;
    @TableField("active_valid")
    private Long activeValid;
    /**
     * 根据登录状态 最后一次失败:表示累加 成功后:重置0,X次后锁定
     */
    @ApiModelProperty(value = "根据登录状态 最后一次失败:表示累加 成功后:重置0,X次后锁定")
    @ApiParam(value = "根据登录状态 最后一次失败:表示累加 成功后:重置0,X次后锁定")
    @TableField("mistake_count")
    private Integer mistakeCount;
    @TableField("lock_datetime")
    private Long lockDatetime;
    @TableField("lock_livetime")
    private Integer lockLivetime;
    @TableField("app_ver")
    private Integer appVer;
    @TableField("wx_openid")
    private String wxOpenid;
    @TableField("notiry_date")
    private Integer notiryDate;
    @TableField("zfb_openid")
    private String zfbOpenid;
    @TableField("weixin_subscribe")
    private Integer weixinSubscribe;
    @TableField("weixin_subsribe_time")
    private Long weixinSubsribeTime;
    /**
     * 微信小程序openid
     */
    @ApiModelProperty(value = "微信小程序openid")
    @ApiParam(value = "微信小程序openid")
    @TableField("wxs_openid")
    private String wxsOpenid;
    /**
     * app的openid
     */
    @ApiModelProperty(value = "app的openid")
    @ApiParam(value = "app的openid")
    @TableField("wxapp_openid")
    private String wxappOpenid;


    public Integer getNodeId() {
        return nodeId;
    }

    public void setNodeId(Integer nodeId) {
        this.nodeId = nodeId;
    }

    public Long getCustId() {
        return custId;
    }

    public void setCustId(Long custId) {
        this.custId = custId;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    public String getTradePwd() {
        return tradePwd;
    }

    public void setTradePwd(String tradePwd) {
        this.tradePwd = tradePwd;
    }

    public String getFundPwd() {
        return fundPwd;
    }

    public void setFundPwd(String fundPwd) {
        this.fundPwd = fundPwd;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOpername() {
        return opername;
    }

    public void setOpername(String opername) {
        this.opername = opername;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getCustSession() {
        return custSession;
    }

    public void setCustSession(String custSession) {
        this.custSession = custSession;
    }

    public Long getSessionVaildDt() {
        return sessionVaildDt;
    }

    public void setSessionVaildDt(Long sessionVaildDt) {
        this.sessionVaildDt = sessionVaildDt;
    }

    public Integer getLoginTotalCt() {
        return loginTotalCt;
    }

    public void setLoginTotalCt(Integer loginTotalCt) {
        this.loginTotalCt = loginTotalCt;
    }

    public Integer getLoginResult() {
        return loginResult;
    }

    public void setLoginResult(Integer loginResult) {
        this.loginResult = loginResult;
    }

    public Long getLastDatetime() {
        return lastDatetime;
    }

    public void setLastDatetime(Long lastDatetime) {
        this.lastDatetime = lastDatetime;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Long getLng() {
        return lng;
    }

    public void setLng(Long lng) {
        this.lng = lng;
    }

    public Long getLat() {
        return lat;
    }

    public void setLat(Long lat) {
        this.lat = lat;
    }

    public String getDevinfos() {
        return devinfos;
    }

    public void setDevinfos(String devinfos) {
        this.devinfos = devinfos;
    }

    public String getPushIosDeviceid() {
        return pushIosDeviceid;
    }

    public void setPushIosDeviceid(String pushIosDeviceid) {
        this.pushIosDeviceid = pushIosDeviceid;
    }

    public String getPushAndroidDeviceid() {
        return pushAndroidDeviceid;
    }

    public void setPushAndroidDeviceid(String pushAndroidDeviceid) {
        this.pushAndroidDeviceid = pushAndroidDeviceid;
    }

    public String getPushAndroidUserid() {
        return pushAndroidUserid;
    }

    public void setPushAndroidUserid(String pushAndroidUserid) {
        this.pushAndroidUserid = pushAndroidUserid;
    }

    public Integer getActiveType() {
        return activeType;
    }

    public void setActiveType(Integer activeType) {
        this.activeType = activeType;
    }

    public Integer getActiveItem() {
        return activeItem;
    }

    public void setActiveItem(Integer activeItem) {
        this.activeItem = activeItem;
    }

    public String getActiveId() {
        return activeId;
    }

    public void setActiveId(String activeId) {
        this.activeId = activeId;
    }

    public String getActiveCode() {
        return activeCode;
    }

    public void setActiveCode(String activeCode) {
        this.activeCode = activeCode;
    }

    public Long getActiveValid() {
        return activeValid;
    }

    public void setActiveValid(Long activeValid) {
        this.activeValid = activeValid;
    }

    public Integer getMistakeCount() {
        return mistakeCount;
    }

    public void setMistakeCount(Integer mistakeCount) {
        this.mistakeCount = mistakeCount;
    }

    public Long getLockDatetime() {
        return lockDatetime;
    }

    public void setLockDatetime(Long lockDatetime) {
        this.lockDatetime = lockDatetime;
    }

    public Integer getLockLivetime() {
        return lockLivetime;
    }

    public void setLockLivetime(Integer lockLivetime) {
        this.lockLivetime = lockLivetime;
    }

    public Integer getAppVer() {
        return appVer;
    }

    public void setAppVer(Integer appVer) {
        this.appVer = appVer;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public Integer getNotiryDate() {
        return notiryDate;
    }

    public void setNotiryDate(Integer notiryDate) {
        this.notiryDate = notiryDate;
    }

    public String getZfbOpenid() {
        return zfbOpenid;
    }

    public void setZfbOpenid(String zfbOpenid) {
        this.zfbOpenid = zfbOpenid;
    }

    public Integer getWeixinSubscribe() {
        return weixinSubscribe;
    }

    public void setWeixinSubscribe(Integer weixinSubscribe) {
        this.weixinSubscribe = weixinSubscribe;
    }

    public Long getWeixinSubsribeTime() {
        return weixinSubsribeTime;
    }

    public void setWeixinSubsribeTime(Long weixinSubsribeTime) {
        this.weixinSubsribeTime = weixinSubsribeTime;
    }

    public String getWxsOpenid() {
        return wxsOpenid;
    }

    public void setWxsOpenid(String wxsOpenid) {
        this.wxsOpenid = wxsOpenid;
    }

    public String getWxappOpenid() {
        return wxappOpenid;
    }

    public void setWxappOpenid(String wxappOpenid) {
        this.wxappOpenid = wxappOpenid;
    }

    @Override
    protected Serializable pkVal() {
        return this.custId;
    }

    @Override
    public String toString() {
        return "TAcctCustLoginInfo{" +
                ", nodeId=" + nodeId +
                ", custId=" + custId +
                ", loginType=" + loginType +
                ", tradePwd=" + tradePwd +
                ", fundPwd=" + fundPwd +
                ", mobile=" + mobile +
                ", opername=" + opername +
                ", email=" + email +
                ", qq=" + qq +
                ", weixin=" + weixin +
                ", custSession=" + custSession +
                ", sessionVaildDt=" + sessionVaildDt +
                ", loginTotalCt=" + loginTotalCt +
                ", loginResult=" + loginResult +
                ", lastDatetime=" + lastDatetime +
                ", loginIp=" + loginIp +
                ", lng=" + lng +
                ", lat=" + lat +
                ", devinfos=" + devinfos +
                ", pushIosDeviceid=" + pushIosDeviceid +
                ", pushAndroidDeviceid=" + pushAndroidDeviceid +
                ", pushAndroidUserid=" + pushAndroidUserid +
                ", activeType=" + activeType +
                ", activeItem=" + activeItem +
                ", activeId=" + activeId +
                ", activeCode=" + activeCode +
                ", activeValid=" + activeValid +
                ", mistakeCount=" + mistakeCount +
                ", lockDatetime=" + lockDatetime +
                ", lockLivetime=" + lockLivetime +
                ", appVer=" + appVer +
                ", wxOpenid=" + wxOpenid +
                ", notiryDate=" + notiryDate +
                ", zfbOpenid=" + zfbOpenid +
                ", weixinSubscribe=" + weixinSubscribe +
                ", weixinSubsribeTime=" + weixinSubsribeTime +
                ", wxsOpenid=" + wxsOpenid +
                ", wxappOpenid=" + wxappOpenid +
                "}";
    }
}
